package com.sys.ai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sys.common.annotation.Excel;
import com.sys.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 知识库Q&A模式对象 ai_knowledge_qa
 *
 * @author LGY
 * @date 2025-05-16
 */
@Data
@Accessors(chain = true)
@TableName("ai_knowledge_qa")
@Schema(description = "知识库Q&A模式对象")
public class AiKnowledgeQa extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private String id;
    /**
     * 知识库id
     */
    @Excel(name = "知识库id")
    @TableField(value = "knowledge_id")
    @Schema(description = "知识库id")
    private String knowledgeId;
    /**
     * 问题
     */
    @Excel(name = "问题")
    @TableField(value = "question")
    @Schema(description = "问题")
    private String question;
    /**
     * 答案
     */
    @Excel(name = "答案")
    @TableField(value = "answer")
    @Schema(description = "答案")
    private String answer;
    /**
     * 备注
     */
    @Excel(name = "备注")
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;

    @TableField(exist = false)
    private Float[] questionEmbedding;

    @TableField(exist = false)
    private Float[] answerEmbedding;
}
